@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["", 
						"操作员", 
						"分公司", 
						"申请部门", 
						"付款方式", 
						"付款金额", 
						"收款单位", 
						"开户银行", 
						"帐号", 
						"申请日期", 
						"状态", 
						"备注"];
		var _colmodel = [{name:"id", index:"id",hidden:true, width:100},
						{name:"u_id", index:"u_id", width:100},
						{name:"company_id", index:"company_id", width:100},
						{name:"dept_id", index:"dept_id", width:100},
						{name:"pay_type", index:"pay_type", width:100},
						{name:"totle_price", index:"totle_price", width:100},
						{name:"pay_to", index:"pay_to", width:100},
						{name:"bank", index:"bank", width:100},
						{name:"bank_account", index:"bank_account", width:100},
						{name:"apply_date", index:"apply_date", width:100},
						{name:"status", index:"status", width:100},
						{name:"remarks", index:"remarks", width:100}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
			@		{name:"操作员", index:"u_id", type:"text"},
			@		{name:"分公司", index:"company_id", type:"text"},
			@		{name:"申请部门", index:"dept_id", type:"text"},
			@		{name:"付款方式", index:"pay_type", type:"text"},
			@		{name:"付款金额", index:"totle_price", type:"text"},
			@		{name:"收款单位", index:"pay_to", type:"text"},
			@		{name:"开户银行", index:"bank", type:"text"},
			@		{name:"帐号", index:"bank_account", type:"text"},
			@		{name:"申请日期", index:"apply_date", type:"text"},
			@		{name:"备注", index:"remarks", type:"text"}
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}

